import request from '@/utils/request'

const system = {
  list(params){
    return request.get(`/yxjk/systemInfo/list`,{params});
  },
  get(id){
    return request.get(`/yxjk/systemInfo/detail/${id}`);
  },
  add(data){
    return request.post('/yxjk/systemInfo/add', data);
  },
  update(data){
    return request.post('/yxjk/systemInfo/update', data);
  },
  del(id){
    return request.post(`/yxjk/systemInfo/delete/${id}`);
  },
  loginDataGetMapByDate(params) {
    return request.get('/yxjk/loginData/getMapByDate', {
      params
    });
  },
  businessDataGetMapByDate(params) {
    return request.get('/yxjk/businessData/getMapByDate', {
      params
    });
  },
  infoDataGetMapByDate(params) {
    return request.get('/yxjk/infoData/getMapByDate', {
      params
    });
  },
  monitorDataGetMapByDate(params) {
    return request.get('/yxjk/monitorData/getMapByDate', {
      params
    });
  },
  transactionDataGetMapByDate(params) {
    return request.get('/yxjk/transactionData/getMapByDate', {
      params
    });
  }
}

export default system;
